from sqlalchemy import Column, Integer

from app.models.base import BaseModel


class AttrGroupRelDo(BaseModel):
    """属性分组和属性关联表"""
    __tablename__ = 'attr_group_rel'
    __table_args__ = {"comment": "属性分组和属性关联表"}

    id = Column(Integer,
                           primary_key=True,
                           autoincrement=True,
                           comment="分组id")
    attr_id = Column(Integer, comment="属性id")
    attr_group_id = Column(Integer, comment="组id")
    attr_sort = Column(Integer,comment="排序")